package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 短信发送记录
业务对象 sms_send_record
 *
 * @author ruoyi
 * @date 2024-04-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SmsSendRecordBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String smsPhone;

    /**
     * 发送类型(1.验证码 2.通知 3.营销 4.其他)
     */
    @NotBlank(message = "发送类型(1.验证码 2.通知 3.营销 4.其他)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String smsType;

    /**
     * 短信发送时间
     */
    @NotNull(message = "短信发送时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date smsSendTime;

    /**
     * 发送次数
     */
    @NotNull(message = "发送次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long smsNumber;


}
